<script type="text/javascript">
$(document).ready(function(){
$("#movenew-sTable").tablesorter();

$("#movenew-sTable tbody tr").click(function(){
    var tds = $(this).children();
    var sn = $(this).attr('id');
    setMoveNewData(sn);
//    $("#movenewForm").attr('action','<?php echo $this->route('movenew-edit')?>');
});

$('#movenew-sTable tbody tr').closeDOMWindow({eventType:'click'});

$("#movenew-sTable tbody tr").mouseover(function() {
    $(this).addClass("trover");}).mouseout(function() {
        $(this).removeClass("trover");});
});
</script>


<table id="movenew-sTable" class="tablesorter">
<thead>
<tr>
<th><?php echo $this->translate('year')?></th>
<th><?php echo $this->translate('commencement')?></th>
<th><?php echo $this->translate('approve_organ')?></th>
<th><?php echo $this->translate('approve_word')?>/ <?php echo $this->translate('approve_number')?></th>
<th><?php echo $this->translate('numbers')?></th>
</tr>
</thead>
<tbody>
<?php foreach($this->data as $val):?>
<tr id="<?php echo $val['sn']?>">
<td><?php echo $val['year']?></td>
<td><?php echo $val['date']?></td>
<td><?php echo $val['approve_organ']?></td>
<td><?php echo $val['approve_date']?> <?php echo $val['approve_organ']?> <?php echo $val['approve_word']?> <?php echo $val['approve_number']?></td>
<td><?php echo $val['number']?></td>
</tr>
<?php endforeach?>
</tbody>
</table>
